package com.leyou.item.api;

import com.leyou.item.entity.Category;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author linzx
 * @date 2020/3/26
 */
public interface CategoryApi {
    /**
     * 根据ids查询分类名称信息在搜索时用
     * @param ids
     * @return
     */
    @GetMapping("category/names")
   List<String> queryNamesByIds(@RequestParam("ids")List<Long> ids);

    /**
     *
     * @param ids
     * @return
     */
    @GetMapping("category/ids")
  List<Category> queryCategoryByIds(@RequestParam("ids")List<Long> ids);
}
